package com.wyd.jwpkglxt_ssm.controller;

import com.wyd.jwpkglxt_ssm.entity.PtDepartment;
import com.wyd.jwpkglxt_ssm.service.PtDepartmentService;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * (PtDepartment)表控制层
 *
 * @author wyd
 * @since 2021-08-11 10:38:22
 */
@RestController
@RequestMapping("ptDepartment")
public class PtDepartmentController {
    /**
     * 服务对象
     */
    @Autowired
    private PtDepartmentService ptDepartmentService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PtDepartment selectOne(Integer id) {
        return this.ptDepartmentService.queryById(id);
    }

}